{% extends 'layout.html' %}
{% block content %}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">新建{{ title }}</h3>
    </div>
    <div class="panel-body">
        <form method="post" novalidate>
            {% csrf_token %}
            {% for field in form %}
            <div class="form-group">
                <label style="padding:5px 0 5px;">{{field.label}}</label>
                {{ field }}
                <span style="color: red;">{{ field.errors.0 }}</span>
            </div>
            {% endfor %}
            <button type="submit" class="btn btn-default btn-primary">提 交</button>
        </form>
    </div>
</div>
{% endblock %}